<template>
  <div>
    <TransitionGroup name="list" tag="ul">
      <!-- 向内传递插槽内容 -->
      <slot></slot>
    </TransitionGroup>
  </div>
</template>
<script></script>
<style>
.list-enter-active,
.list-leave-active {
  transition: all 0.5s ease;
}
.list-enter-from,
.list-leave-to {
  opacity: 0;
  transform: translateX(30px);
}
</style>
